Portability between non-Windows and Windows systems

Most existing Synergy applications will run on Windows without any additional work beyond installing and using the Windows runtime. Here are some suggestions:

If changes are necessary, you can use the built-in define D_GUI to conditionalize your code. If you make any changes, you must recompile and relink your application.

We recommend conditionalizing the code at runtime by comparing the machine argument returned from the ENVRN subroutine to the 101 or 104 system code. With this method, you can take advantage of little-endian system compatibility, which requires no recompiling or relinking.